
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: class Resource</title>
</head><body bgcolor="#f0f0f8">
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="Resource">class <strong>Resource</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>A&nbsp;class&nbsp;for&nbsp;interacting&nbsp;with&nbsp;a&nbsp;resource.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl>

<dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Retrieves&nbsp;table&nbsp;data&nbsp;from&nbsp;a&nbsp;specified&nbsp;set&nbsp;of&nbsp;rows.<br>
&nbsp;<br>
Args:<br>
&nbsp;&nbsp;projectId:&nbsp;string,&nbsp;Project&nbsp;ID&nbsp;of&nbsp;the&nbsp;table&nbsp;to&nbsp;read&nbsp;(required)<br>
&nbsp;&nbsp;maxResults:&nbsp;integer,&nbsp;Maximum&nbsp;number&nbsp;of&nbsp;results&nbsp;to&nbsp;return<br>
&nbsp;&nbsp;startIndex:&nbsp;string,&nbsp;Zero-based&nbsp;index&nbsp;of&nbsp;the&nbsp;starting&nbsp;row&nbsp;to&nbsp;read<br>
&nbsp;&nbsp;tableId:&nbsp;string,&nbsp;Table&nbsp;ID&nbsp;of&nbsp;the&nbsp;table&nbsp;to&nbsp;read&nbsp;(required)<br>
&nbsp;&nbsp;datasetId:&nbsp;string,&nbsp;Dataset&nbsp;ID&nbsp;of&nbsp;the&nbsp;table&nbsp;to&nbsp;read&nbsp;(required)<br>
&nbsp;<br>
Returns:<br>
&nbsp;&nbsp;An&nbsp;object&nbsp;of&nbsp;the&nbsp;form<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;{<br>
&nbsp;&nbsp;&nbsp;&nbsp;"rows":&nbsp;[&nbsp;#&nbsp;Rows&nbsp;of&nbsp;results.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"f":&nbsp;[&nbsp;#&nbsp;Represents&nbsp;a&nbsp;single&nbsp;row&nbsp;in&nbsp;the&nbsp;result&nbsp;set,&nbsp;consisting&nbsp;of&nbsp;one&nbsp;or&nbsp;more&nbsp;fields.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"v":&nbsp;"A&nbsp;String",&nbsp;#&nbsp;Contains&nbsp;the&nbsp;field&nbsp;value&nbsp;in&nbsp;this&nbsp;row,&nbsp;as&nbsp;a&nbsp;string.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;],<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>
&nbsp;&nbsp;&nbsp;&nbsp;],<br>
&nbsp;&nbsp;&nbsp;&nbsp;"kind":&nbsp;"bigquery#tableDataList",&nbsp;#&nbsp;The&nbsp;resource&nbsp;type&nbsp;of&nbsp;the&nbsp;response.<br>
&nbsp;&nbsp;&nbsp;&nbsp;"etag":&nbsp;"A&nbsp;String",&nbsp;#&nbsp;A&nbsp;hash&nbsp;of&nbsp;this&nbsp;page&nbsp;of&nbsp;results.<br>
&nbsp;&nbsp;&nbsp;&nbsp;"totalRows":&nbsp;"A&nbsp;String",&nbsp;#&nbsp;The&nbsp;total&nbsp;number&nbsp;of&nbsp;rows&nbsp;in&nbsp;the&nbsp;complete&nbsp;table.<br>
&nbsp;&nbsp;}</tt></dd></dl>

<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table>
</body></html>